<template>
  <div class="content">
    <h2>Home组件 {{ message }}</h2>
  </div>
</template>

<script>
  import HomeBanner from '@/08_provide和Inject/HomeBanner.vue';
import messageMixin from '../mixins/message-mixin';
  export default {
    components: {
      
    },
    mixins: [messageMixin],
    methods: {
      
    },
    data() { // 可以再继续定义数据,会自动合并mixins中的数据
      return {
        homeBanner: ['a', 'b'],
        message: '自身home message'
      }
    },
    created() { // mixins中的created会先执行,然后再执行组件中的created
      console.log('Home中的created: ', this.homeBanner);
    }
    
  }
</script>

<style scoped>
</style>